package com.syni.mdd.sjb.common.component.utils.feign.service.mddAll;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;
import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @className VideoRestService
 * @description TOO
 * @Author cfx
 * @DATE 2020/3/9 14:22
 * @VERSION 1.0
 **/
@FeignClient(value = Constants.MDD_DSP_API,path = Constants.MDD_DSP_API_PATH)
public interface VideoRestService extends MddAllRestService{
    @GetMapping("/apiVideo/getVideoById")
    RpcResponseVo timeToCancel(@RequestParam("videoId") Integer videoId);

    @PostMapping("/apiVideo/insertMtMachineVideo")
    RpcResponseVo insertMtMachineVideo(@RequestBody ParamsMap paramsMap);
}
